﻿using NHibernate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSite.Core;
using WebSite.Data.NH.Infrastructure;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories
{
    //public interface IManagerPerson
    //{
    //    IQueryable<PersonInfo> GetAll1();
    //    PersonInfo Get();
    //}
    //public class ManagerPerson : IManagerPerson
    //{
    //    public IPersonRepository PR { get; set; }

        
    //    public IQueryable<PersonInfo> GetAll1()
    //    {
    //        var r = PR.GetAll();
    //        return r;
    //    }

    //    public PersonInfo Get()
    //    {
    //        var r = PR.Get(1);

    //        return r;
    //    }
    //}

    public interface IPersonRepository:IRepository<PersonInfo>
    {

    }

    public class PersonRepository : NhRepositoryBase<PersonInfo>, IPersonRepository
    {
        public PersonRepository(ISession session)
            : base(session)
        {

        }
    }
}
